package com.aramco.fion.model.presentation.grid
{
	import com.aramco.fion.util.BSPReportDataModelOO;
	
	import mx.collections.ArrayCollection;

	public class FionGridPresentaionModel
	{
		public function FionGridPresentaionModel()
		{
		}
		
		[Bindable]
		public var dataGridColumns:Array;
		[Bindable]
		public var dataProvider:ArrayCollection;
		
		private var _queryOutput:BSPReportDataModelOO;

		[Inject("queryModel.queryOutput", bind="true")]
		public function get queryOutput():BSPReportDataModelOO
		{
			return _queryOutput;
		}

		
		public function set queryOutput(value:BSPReportDataModelOO):void
		{
			if(value != null)
			{
				dataProvider = value.repotData;
				dataGridColumns = value.dataGridColumns;
				/*_queryOutput = value;
				dataGridColumns = value.getDatagridColumns(value.repotData,value.metaData);
				dataProvider = value.repotData;*/
			}
		}

	}
}